.iup-form-attachment {
  height: auto;
  .attachment-flex-center {
    display: flex;
    align-items: center;
    line-height: 24px;
    flex: 1;
    min-width: 160px;
    width: 0;
    position: relative;

    .attachment-space-btn {
      display: none;
    }

    &:hover {
      .attachment-space-btn {
        display: flex;
      }
    }
    .file-status-icon {
      position: relative;
      top: -1px;
      &.done {
        color: #29bc38;
      }
      &.failed {
        color: #ff3333;
      }
    }
    .attachment-progress {
      position: absolute;
      width: 95%;
      bottom: -6px;
      left: 2px;
      z-index: 1;
      margin: 0;
      line-height: 6px;
      max-width: 180px;
    }

    &.upload-failed {
      color: #ff3333;
    }
  }

  .attachment-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
  }

  .attachment-preview-file {
    cursor: pointer;
    color: var(--primary-color);
  }
}
